<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>留言薄</title>
    <link rel="Stylesheet" href="static/main.css" type="text/css">
</head>
<body>
<div id="main">
    <h1>留言板</h1>
    <div id="form-area">
    <p>请留言：</p>
        <form action="/post" method="post">

            <table>
                <tr>
                    <th>姓名：</th>
                    <td>
                        <input type="text" size="20" name="name">
                    </td>

                </tr>
                <tr>
                    <th>评论：</th>
                    <td>
                        <textarea rows="5" cols="40" name="comments"></textarea>
                    </td>

                </tr>

            </table>
                <p><button type="submit">提交</button></p>

        </form>
    </div>
</div>
<div id="entries-area">
    <h2>留言信息</h2>
    <div class="entry">
        {% for greet in greetlist %}
        <h3>{{greet.name}}评论于({{greet.creat_at}})</h3>
        <p>
            评论内容：<br/>
            {{greet.comment}}

        </p>
        {% endfor %}

    </div>
</div>
</body>
</html>